/*
 * TimeTest.java
 *
 * This program demonstrates the use of Time Class.
 *
 
 */

package com.javacore.day3.booking;

/**
 * This class uses the Time class and its members.
 *
 * @author
 */

public class TimeTest {
    
    /** Creates a new instance of TimeTest */
    public TimeTest() {
    }
    
    /**
     * @param args the command line arguments
     */
    public static void main(String[] args) {
        // Creating an instance of Time class
        Time timeOfFlight = new Time();
        
        // Displaying default values of Time instance
        System.out.println("\nThe default value of Time instance is:");
        System.out.printf("%02d:%02d", timeOfFlight.hours, timeOfFlight.minutes);
        
        // Initialize the instance variables
        timeOfFlight.hours = 13;
        timeOfFlight.minutes = 30;
        
        System.out.println("\nNew value of Time instance is:");
        System.out.printf("%02d:%02d", timeOfFlight.hours, timeOfFlight.minutes);
    }
    
}
